<?php
/**
 * 护理记录单子项 模型
 * @authors xiadx (xiadx@zpdchina.com)
 * @date    2017-03-06 15:43:33
 * @version $Id$
 */

class DataHulijiluTemplateItemModel extends BaseModel {

    public function ls($ids = [])
    {
    	if (empty($ids)) {
    		return [];
    	}
		$query = DB::select()
					->from('data_hulijilu_template_item')
					->where('yiyuan_id', '=', $this->yiyuan_id)
					->and_where('huli_temp_id', 'IN', $ids)
					->execute()
					->as_array();
		return $query;
    }
}
